put "You clicked the ΓÇ£CancelΓÇ¥ button." into cd fld "theResult"
else
put the result into temp
if item 1 of temp = "TRUE" then
put "Checked" into checked
else put "Unchecked" into checked
put "The checkbox was:" && checked & return into cd fld "theResult"
if item 2 of temp is empty then
put "String 1 was: empty" & return after cd fld "theResult"
else put "String 1 was:" && item 2 of temp & return after cd fld "theResult"
if item 3 of temp is empty then
put "String 2 was: empty" after cd fld "theResult"
else put "String 2 was:" && item 3 of temp after cd fld "theResult"
end if
end mouseUp
-- part contents for background part 2
----- text -----
ShowDialog XCMD Type 2 Examples
-- part contents for background part 3
----- text -----
ShowDialog XCMD Type 2 (continued...)
-- part contents for background part 1
----- text -----
If you have only one Editable Text field in your dialog then "the result" will contain the contents of that field. If you have two Editable Text fields, "the result" will contain the contents of both fields separated by a comma (e.g., string one, string two). If you have a checkbox in your dialog, the first item in the result will be TRUE or FALSE, reflecting the condition of the checkbox.
If the user clicks the Cancel button "the result" will be empty.